﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using DAL.Repositories;

namespace BLL
{

    public class CinemaCTR : Interfaces.ICinemaCTR
    {
        CinemaRepository _cinemaRep;


        public CinemaCTR()
        {
            _cinemaRep = new CinemaRepository();
        }

        /// <summary>
        /// Gets all Cinemas
        /// </summary>
        /// <returns>All Cinemas</returns>
        /// <exception cref="ArgumentNullException"></exception>
        /// <exception cref="Exception"></exception>
        public IList<Cinema> GetCinemas()
        {
            return _cinemaRep.GetCinemas();
        }
    }
}